﻿using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace Journeo_backend.Models.Domain
{
    [Table("comment_like")]
    public class CommentLike
    {
        [Key]
        public long LikeId { get; set; }

        [Required]
        public long CommentId { get; set; }

        [Required]
        public long UserId { get; set; }

        public DateTime CreatedAt { get; set; } = DateTime.Now;

        [ForeignKey("CommentId")]
        public AttractionComment Comment { get; set; }

        [ForeignKey("UserId")]
        public User User { get; set; }
    }
}
